﻿/***********************************************************************
 * <copyright file="Slide.cs" company="VidaGIS">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   Hoang Bich Son 
 * Email:    sonhb@vidagis.com or bichson2002@gmail.com
 * Website:
 * Create Date: Tuesday, November 25, 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System;
using System.Collections.Generic;
using BusinessObjects;
using BusinessObjects.BusinessRules;

namespace BusinessCMS
{
    /// <summary>
    /// Slide class
    /// </summary>
    public class Slide: BusinessObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Slide"/> class.
        /// </summary>
        public Slide()
        {
            AddRule(new ValidateId("SlideId"));
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="Slide"/> class.
        /// </summary>
        /// <param name="slideId">The slide identifier.</param>
        /// <param name="sort">The sort.</param>
        /// <param name="groupSlideId">The group slide identifier.</param>
        /// <param name="rowguid">The rowguid.</param>
        /// <param name="modifiedDate">The modified date.</param>
        public Slide(long slideId, short? sort, int? groupSlideId, Guid? rowguid, DateTime? modifiedDate)
            : this()
        {

            SlideId = slideId;
            Sort = sort;
            GroupSlideId = groupSlideId;
            Rowguid = rowguid;
            ModifiedDate = modifiedDate;
        }

        /// <summary>
        /// Gets or sets the group slide.
        /// </summary>
        /// <value>
        /// The group slide.
        /// </value>
        public GroupSlide GroupSlide { get; set; }

        /// <summary>
        /// Gets or sets the slide description.
        /// </summary>
        /// <value>
        /// The slide description.
        /// </value>
        public List<SlideDescription> SlideDescription { get; set; }

        /// <summary>
        /// Gets or sets the slide identifier.
        /// </summary>
        /// <value>
        /// The slide identifier.
        /// </value>
        public long SlideId { get; set; }

        /// <summary>
        /// Gets or sets the sort.
        /// </summary>
        /// <value>
        /// The sort.
        /// </value>
        public short? Sort { get; set; }

        /// <summary>
        /// Gets or sets the group slide identifier.
        /// </summary>
        /// <value>
        /// The group slide identifier.
        /// </value>
        public int? GroupSlideId { get; set; }

        /// <summary>
        /// Gets or sets the rowguid.
        /// </summary>
        /// <value>
        /// The rowguid.
        /// </value>
        public Guid? Rowguid { get; set; }

        /// <summary>
        /// Gets or sets the modified date.
        /// </summary>
        /// <value>
        /// The modified date.
        /// </value>
        public DateTime? ModifiedDate { get; set; }
    }
}
